#pragma once
#include "MRect.h"
#include "MCircle.h"
#include <list>
#include <GL\glut.h>
using namespace std;

class SceneManager
{
private:
	 double my_x , my_y ; /* current position */
	 int window_w, window_h ; /* window height and width */
	 double my_rect_w, my_rect_h; /* rectangle width and height */
	 int segment;	//segments for circle
	 bool bRect;
	 list<Shape*> items_falling;
	 list<Shape*> items_ground;
	 list<Shape*> items[11];
	 static const float RADIUS;
	 static const int MAX_ITEMS;
	 static const int REFRESH_TIME;
public:
	SceneManager(int w, int h);
	~SceneManager(void);
	void my_setup();
	void my_display();
	void my_timeout(int id);
	void my_idle();
	void my_reshape(int w, int h);
	void my_mouse(int b, int s, int x, int y);
	void my_keyboard(unsigned char c, int x, int y);
};

